package controller;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import pojo.Topic;
import pojo.User;

import java.util.*;

import dao.BookDAO;
import dao.TopicDAO;
import dao.UserDAO;
 
@Controller
public class DangXuatController {

    @RequestMapping(value= "/DangXuat.do" , method = RequestMethod.GET)
    public String getview(HttpServletRequest request
    		) {
    	
		HttpSession session = request.getSession(false);
		session.removeAttribute("user");
		session.removeAttribute("oldUrl");
		return "redirect:/home";
    	
    }
   
 
   
}